package com.learn.springcloud.eurekahaprovider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/7/23 19:40
 * @Version : 1.0
 * @Author : hongyan.li@hand-china.com
 * Copyright @ 2000 Shanghai Hand Co. Ltd.
 * All right reserved.
 */
@RestController
public class GetProvider {

    @GetMapping(value = "/provider/getForEntity/service")
    public String getForEntity(String name){
        return "hello, " + name;
    }


    @GetMapping(value = "/provider/getForObject/service")
    public String getForObject(String name){
        return "hello, " + name;
    }

}
